Automatic Count DXL

Hi Everyone, I have what I think is a simple question which I am having an issue with. (I am using DOORS 9.6.4 and RPE 2.0)

 I have a DOORS module with many many object. Each Object has an Object Type which can be one of the following ( Information, Heading, Requirement, Table Caption, Figure Caption ... so on) 

Is it possible to have a DXL script that creates and automatic numbering based on an attribute. For example the 1st requirement in the document would get Requirement-1, or Test-1 and in the module the next time it sees a Requirement it will do Requirement -2, or Test 2? This would have to be dynamic of course, I would evel like ot have the prefix of the module added to the text for example CARPS-Test-1.. CARPS-Test-2 so on

If any one has an example of this it would really help

 

Thanks


Alex_4_IBM - Fri Oct 14 12:30:45 EDT 2016

Re: Automatic Count DXL
DOORSHAM - Mon Oct 17 14:06:08 EDT 2016

Hint to you -- there are some people that get upset when you post same topic in multiple forums.

 

Yes you can develop layoutdxl or attributedxl to make a dynamic numbering system.

Re: Automatic Count DXL
Bob_Swan - Tue Oct 18 03:43:04 EDT 2016

Yes you can, but make it dxl that is triggered by manual action. If you make it fully dynamic it will renumber everything each time you add a requirement. If you add a new one at the start all others may change.

Hint: Keep the last number allocated in a module variable.